﻿using System;

namespace Besture.UI.Admin.Control
{
    public partial class RichText : System.Web.UI.UserControl
    {

        public string _Detail = string.Empty;

        /// <summary>
        /// 富文本Name
        /// </summary>
        public string RichTextName { get; set; }
        /// <summary>
        /// 宽度
        /// </summary>
        public int Width { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public int Height { get; set; }

        /// <summary>
        /// 富文本值
        /// </summary>
        public string Text
        {
            get
            {
                return Request.Params[RichTextName] == null ? "" : Request.Params[RichTextName];
            }
            set { _Detail = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            /*if (!IsPostBack)
            {*/
                //设置宽高的缺省值
                if (Width == 0)
                {
                    Width = 800;
                }
                if (Height == 0)
                {
                    Height = 300;
                }
            //}

        }
    }
}